[#879] Add airdrop campaign config module#899
Merged
realproject7 merged 1 commit intomainfrom Apr 20, 2026
Merged
Conversation
Create lib/airdrop/config.ts with test/prod configuration switchable via NEXT_PUBLIC_AIRDROP_MODE env var. Includes point values, streak boosts, milestone tiers, pool amounts, and campaign dates. Fixes #879 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
project7-interns
approved these changes
Apr 20, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
The new config module matches the issue scope and exports the expected shared/test/prod values behind the NEXT_PUBLIC_AIRDROP_MODE switch. Defaulting to prod when the env var is unset also matches the acceptance criteria.
Findings
- No blocking findings.
Decision
Approving because the module is focused, the config shape is complete, and the mode switch behavior matches the ticket requirements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lib/airdrop/config.tswith test/prod campaign configurationNEXT_PUBLIC_AIRDROP_MODE=test|prodenv var (defaults to prod)Files Changed
lib/airdrop/config.ts— new fileTest plan
npm run typecheckpassesAIRDROP_CONFIG— verify it returns prod config by defaultNEXT_PUBLIC_AIRDROP_MODE=test— verify test config valuesFixes #879
🤖 Generated with Claude Code